package com.zhipu.resetbalance.ui.home.calibrate;

import android.os.Bundle;

import androidx.lifecycle.ViewModelProvider;

import com.zhipu.resetbalance.R;
import com.zhipu.resetbalance.databinding.ActivityCalibrateBinding;
import com.zhipu.resetbalance.ui.BaseActivity;

/**
 * 校准
 */
public class CalibrateActivity extends BaseActivity<ActivityCalibrateBinding> {
    /**
     * VM
     */
    private CalibrateViewModel mCalibrateViewModel;

    @Override
    public int initContentView(Bundle savedInstanceState) {

        return R.layout.activity_calibrate;

    }


    @Override
    public void initViewModel() {
        super.initViewModel();
        //VM
        mCalibrateViewModel = new ViewModelProvider(getViewModelStore(), new ViewModelProvider.AndroidViewModelFactory(getApplication())).get(CalibrateViewModel.class);
        binding.setViewModel(mCalibrateViewModel);
    }

    @Override
    public void initCreate() {
        super.initCreate();

    }

    @Override
    public void initView() {
        super.initView();
        if(null != mCalibrateViewModel){
            mCalibrateViewModel.milliseconds();
        }
    }

    @Override
    public void initData() {
        super.initData();

    }


    @Override
    public void initViewObservable() {
        super.initViewObservable();

    }
}
